Skip to content

Instantly share code, notes, and snippets.

@spalladino
spalladino / mysql-docker.sh
Created December 22, 2015 13:47
Backup and restore a mysql database from a running Docker mysql container
# Backup
docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql
# Restore
cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE
@balloob
balloob / panel-redirect.js
Created June 22, 2020 04:51
Add redirects to the Home Assistant sidebar to any place in Home Assistant
/*
Add a link to the sidebar to any path in Home Assistant
Put this file in <config>/www/panel-redirect.js
In configuration.yaml:
panel_custom:
- name: panel-redirect
# url_path needs to be unique for each panel_custom config
Shader "Custom/PainterlyLighting"
{
Properties
{
_Color ("Color", Color) = (1,1,1,1)
[HDR]_SpecularColor("Specular color", Color) = (1, 1, 1, 1)
_MainTex ("Albedo (RGB)", 2D) = "white" {}
[Normal]_Normal("Normal", 2D) = "bump" {}
_NormalStrength("Normal strength", Range(-2, 2)) = 1
@prabakaranc98
prabakaranc98 / frontier_AIMLDS.md
Created March 9, 2026 15:45
# Frontier AI/ML/Data Science: A Survey of Problem Spaces, Roles & Required Skillsets

Frontier AI/ML/Data Science: A Survey of Problem Spaces, Roles & Required Skillsets

Executive Summary

The frontier AI/ML/Data Science ecosystem spans hundreds of distinct problem spaces across top labs (OpenAI, Anthropic, Google DeepMind, Meta FAIR, xAI), FAANG-tier companies, and high-growth startups. Rather than thinking in terms of generic titles like "Machine Learning Engineer," the field is better understood through the lens of specific problem spaces — each demanding a unique combination of technical depth, research orientation, and engineering rigor.

This survey organizes the landscape under three broad umbrellas — AI (Frontier Research & Systems), Machine Learning (Engineering & Applied), and Data Science (Applied Analytics & Decision Intelligence) — and enumerates the major problem spaces within each. For every problem space, the report identifies the key companies working on it, the specific roles that exist, and the precise skillsets and mindsets required.


@staltz
staltz / introrx.md
Last active March 10, 2026 03:48
The introduction to Reactive Programming you've been missing
@ossa-ma
ossa-ma / tropes.md
Last active March 10, 2026 03:46
AI Writing Tropes to Avoid — tropes.fyi by ossama.is

AI Writing Tropes to Avoid

Add this file to your AI assistant's system prompt or context to help it avoid common AI writing patterns. Source: tropes.fyi by ossama.is


Word Choice

"Quietly" and Other Magic Adverbs

@steipete
steipete / TWITTER_BLOCKLIST_PUBLIC.md
Created March 9, 2026 06:13
Redacted Twitter mention blocklist policy

Twitter Mention Blocklist Policy

Public-safe version. Redacted. No handles, no links, no callouts.

Block immediately

  • Strongly derogatory replies
  • Crypto spam, token shills, wallet/contract junk
  • Clear AI slop or reply-bot behavior
  • Repetitive low-context spam
"""
The most atomic way to train and run inference for a GPT in pure, dependency-free Python.
This file is the complete algorithm.
Everything else is just efficiency.
@karpathy
"""
import os # os.path.exists
import math # math.log, math.exp
@WildeBeast2521
WildeBeast2521 / tunnel-to-wg.md
Created June 16, 2025 07:06
A guide to use Cloudflare Tunnel with WireGuard client application
import itertools
import random
import time
A = 0x5deece66d
B = 11
LCG_MOD_POW = 48
M = 2**LCG_MOD_POW
BIG_MASK = M - 1